#ifndef QCLICKWIDGET_H
#define QCLICKWIDGET_H
#include <QWidget>

class QClickWidget:public QWidget
{
public:
    QClickWidget(QWidget *parent = 0);
signals:
    void clicked();
public slots:
    void mouseClicked();
protected:
    void mousePressEvent(QMouseEvent *ev);
    void mouseReleaseEvent(QMouseEvent *ev);

private:
    QPoint mousePos;

};

#endif // QCLICKWIDGET_H
